<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>广告信息</title>
	<!-- 为IE9之前的版本创造HTML5的元素 -->
	<!--[if lt IE 9]>
		<script>
			var e = ("abbr,article,aside,audio,canvas,datalist,details,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video").split(',');
			for(var i = 1; i < e.length; i++)
				document.createElement(e[i]);
		</script>
	<![endif]-->
	<link rel="stylesheet" href="../Public/css/all.css" />
	<link rel="stylesheet" href="../Public/css/advertisement.css" />
	<script src="../Public/js/jquery.js" type="text/javascript"></script>
	<!--[if IE]>
		<style type="text/css" rel="stylesheet">
			#searchBtn{
				height:26px;
				padding-top:0;
				padding-bottom:0;
			}
		</style>
	<![endif]-->
</head>
<body>
	<include file="Public:header" />
		<!-- 广告主内容 -->
		<div id="ad_container">
			<!-- 航空公司推荐 -->
			<div id="ad_r_title">航空公司推荐</div>
			<div id="ad_r_search">
				<input type="text" id="r_searchBox" />
				<select id="r_s_select">
					<option>－－请选择搜索类型－－</option>
					<option>搜公司名称</option>
					<option>搜货运量</option>
				</select>
				<button id="searchBtn">搜索</button>
				<script>
					$(document).ready(function(){
						$("#searchBtn").click(function(){
							var selectedIndex = $("#r_s_select")[0].selectedIndex;
							var q = $("#r_searchBox").val();
							if(q == ''){
								alert("请输入搜索内容");
								return;
							}
							if(selectedIndex == 1){
								$("#airline_list")[0].src="AdvertisingInformationAirline/search_by_name?q="+q;
							}else if(selectedIndex == 2){
								$("#airline_list")[0].src="AdvertisingInformationAirline/search_by_shipment?q="+q;
							}else{
								alert("请选择搜索类型");
							}
						});
					});
				</script>
			</div>
			<div id="ad_recommend">
				<iframe id="airline_list" name="airline_list" src="AdvertisingInformationAirline/listall" frameborder="0"></iframe>
			</div>
			<!-- 最新仓储信息-->
			<div id="newStore">
				<div id="ad_n_title">最新仓储信息</div>
				<iframe id="storage_list" name="storage_list" src="AdvertisingInformationStorage/listall" frameborder="0"></iframe>
			</div>
		</div>
	<include file="Public:footer" />
</body>
</html>
